package cqwu.testSSH.Manager.Util;

import java.util.HashMap;
import java.util.Map;

import net.sf.json.JSONObject;
import cqwu.testSSH.Manager.domain.Person;

public class TestJson {
	
	public static void main(String[] args) {
		
		Person  person = new Person();
		person.setAge(22);
		person.setUsername("Test");
		
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("aa","AA");
		map.put("bb", "BB");
		String result = JSONObject.fromObject(person).toString();
		System.out.println(result);
		
	}
	
}
